new Vue({
  el: '#foot',
  data: {
    showToTop: false,
  },
  mounted() {
    this.scroll();
  },
  methods: {
    scroll() {
      var that = this;
      window.onscroll = () => {
        console.log(window.scrollY);
        if (window.scrollY > 5) that.showToTop = true;
        else that.showToTop = false;
        // console.log(that.showToTop);
      };
    },
  },
});
